package com.bdzl.pub.entity.loan;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;



/**
 * 融资租赁订单车辆信息表，用于记录订单对应的车辆信息。
 *
 * @author yangyicai
 * @email yangyicai@foxmail.com
 * @date 2021-05-11 15:02:10
 */
@Data
public class OrderVehDO implements Serializable {
	private static final long serialVersionUID = 1L;

	//ID，主键，自增
	@ExcelProperty("ID")
	private Integer vehId;
	//订单单号，外键，唯一
	@ExcelProperty("订单单号")
	private String vehOdr;
	//车辆品牌
	@ExcelProperty("车辆品牌")
	private String vehBrand;
	//车辆型号
	@ExcelProperty("车辆型号")
	private String vehModel;
	//发动机
	@ExcelProperty("发动机")
	private String vehEngine;
	//马力
	@ExcelProperty("马力")
	private String vehHp;
	//车长
	@ExcelProperty("车长")
	private String vehLen;
	//轴距
	@ExcelProperty("轴距")
	private String vehWheelbase;
	//排放
	@ExcelProperty("排放")
	private String vehEmission;
	//上装
	@ExcelProperty("上装")
	private String vehUp;
	//车辆类型
	@ExcelProperty("车辆类型")
	private String vehType;
	//车辆底盘价格
	@ExcelProperty("车辆底盘价格")
	private BigDecimal vehChassisPrice = BigDecimal.ZERO;
	//加装总额
	@ExcelProperty("加装总额")
	private BigDecimal vehAddMoney = BigDecimal.ZERO;
	//加装配件
	@ExcelProperty("加装配件")
	private String vehAddDetail;
	//单台车辆价格，业务员填报的真实车价
	@ExcelProperty("单台车辆价格")
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal vehPrice = BigDecimal.ZERO;
	//系统车价
	@ExcelProperty("系统车价")
	private BigDecimal vehSysPrice = BigDecimal.ZERO;
	//租赁数量
	@ExcelProperty("租赁数量")
	private Integer vehCount = 0;
	//车辆用途
	@ExcelProperty("车辆用途")
	private String vehPurpose;
	//是否挂靠 Y：是，N：否
	@ExcelProperty("是否挂靠")
	private String vehAffFlag;
	//创建人编号,外键
	@ExcelProperty("创建人编号")
	private Integer vehCreator;
	//创建时间
	@ExcelProperty("创建时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone="GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	private Date vehCretime;
	//最近修改人用户ID，外键
	@ExcelProperty("最近修改人用户ID")
	private Integer vehModuser;
	//最近修改时间
	@ExcelProperty("最近修改时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone="GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	private Date vehModtime;
}
